import {Injectable} from "@angular/core";
import {App, Config, Platform} from "ionic-angular";
import {ActionSheetOptions} from "./adp-action-sheet-options";
import {AdpActionSheet} from "./adp-action-sheet";

@Injectable()
export class AdpActionSheetController {
    constructor(private _app: App, public config: Config) { }

    create(opts: ActionSheetOptions = {}) {
        let o = new AdpActionSheet(this._app, opts, this.config);
        window['adpActionSheet'] = o;
        return o;
    }
}
